package com.ase.单例模式.holder;

/**
 * @author gyhstart
 * @create 2021/2/15 - 15:08
 **/
public class Singleton {
    private static class SingletonHolder {
        private static final Singleton INSTANCE = new Singleton();
    }
    private Singleton (){}
    public static final Singleton getInstance() {
        return SingletonHolder.INSTANCE;
    }
}
